﻿package core.dialog {
	
	import base.BaseMc;
	import core.display.AlphaBg;
	
	public class DialogLoading extends BaseMc{
	
		private var bg:AlphaBg;
	
		public function DialogLoading() {
			
		}
		
		protected override function onInit():void {
			super.onInit();
			bg = new AlphaBg();
			this.parent.addChild(bg);
			this.parent.swapChildren(bg,this);
			this.centerOfStage();
		}
		
		protected override function onRemove():void {
			super.onRemove();
			this.parent.removeChild(this.bg);
		}
		
		public function set Title(str:String):void {
			this.title.text = str;
		}
		
		public function get Title():String{
			return this.title.text;
		}
		
		public function set Message(str:String):void {
			this.message.text = str;
		}
		
		public function get Message():String{
			return this.message.text;
		}

	}
	
}
